from django.contrib import admin
from autocmdb.models import Hardware,EngineRoom,DiskUseInfo
# Register your models here.


class HardwareAdmin(admin.ModelAdmin):
	list_display = ['minion_id','manufacturer','num_cpus','mem_total','status']
	list_per_page = 50
admin.site.register(Hardware,HardwareAdmin)

class EngineRoomAdmin(admin.ModelAdmin):
	list_display = ['id','room','line']
	list_per_page = 20
admin.site.register(EngineRoom,EngineRoomAdmin)

class DiskUseInfoAdmin(admin.ModelAdmin):
	list_display = ['mount','blocks','capacity','filesystem','server']
	list_filter = ['server']
	list_per_page = 30
admin.site.register(DiskUseInfo,DiskUseInfoAdmin)